﻿using Microsoft.Practices.Unity;

namespace TestByWire.AttributeHandlers
{
	public interface IBuildContext
	{
		IUnityContainer Container { get; }
		object TestTarget { get; }
	}

	internal class BuildContext : IBuildContext
	{
		private readonly object _testTarget;
		private readonly IUnityContainer _container;


		public BuildContext(object testTarget, IUnityContainer container)
		{
			_testTarget = testTarget;
			_container = container;

		}

		public IUnityContainer Container
		{
			get { return _container; }
		}

		public object TestTarget
		{
			get { return _testTarget; }
		}
	}
}